package com.kiwi.cases.match.matchenter;

import java.time.LocalDateTime;

/**
 * @description BriefUser
 * @author xuboru
 * @modify gaolei
 * @create 2018-01-14 10:26
 **/
public class BriefUser
{
	private String accountId;//用户id
	private String nickname;//用户昵称
	private String avatarUrl;//用户头像
	private Integer score;//用户分数
	private Integer sex;
	private Integer award;
	private Integer userType;
	private LocalDateTime matchTime;//匹配事后加入set时间

	public String getAccountId()
	{
		return accountId;
	}

	public BriefUser setAccountId(String accountId)
	{
		this.accountId = accountId;
		return this;
	}

	public String getNickname()
	{
		return nickname;
	}

	public BriefUser setNickname(String nickname)
	{
		this.nickname = nickname;
		return this;
	}

	public String getAvatarUrl()
	{
		return avatarUrl;
	}

	public BriefUser setAvatarUrl(String avatarUrl)
	{
		this.avatarUrl = avatarUrl;
		return this;
	}

	public Integer getScore()
	{
		return score;
	}

	public BriefUser setScore(Integer score)
	{
		this.score = score;
		return this;
	}

	public Integer getAward()
	{
		return award;
	}

	public BriefUser setAward(Integer award)
	{
		this.award = award;
		return this;
	}

	public LocalDateTime getMatchTime()
	{
		return matchTime;
	}

	public BriefUser setMatchTime(LocalDateTime matchTime)
	{
		this.matchTime = matchTime;
		return this;
	}

	public Integer getSex()
	{
		return sex;
	}

	public BriefUser setSex(Integer sex)
	{
		this.sex = sex;
		return this;
	}

	public Integer getUserType()
	{
		return userType;
	}

	public BriefUser setUserType(Integer userType)
	{
		this.userType = userType;
		return this;
	}

	@Override
	public String toString()
	{
		final StringBuilder sb = new StringBuilder("{");
		sb.append("\"accountId\":\"")
				.append(accountId).append('\"');
		sb.append(",\"nickname\":\"")
				.append(nickname).append('\"');
		sb.append(",\"avatarUrl\":\"")
				.append(avatarUrl).append('\"');
		sb.append(",\"score\":")
				.append(score);
		sb.append(",\"matchTime\":")
				.append(matchTime);
		sb.append('}');
		return sb.toString();
	}
}
